package com.ruoyi.message.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 站内信对象 algs_message
 * 
 * @author ruoyi
 * @date 2023-03-22
 */
public class AlgsMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 站内信id */
    private Long messageId;

    /** 发送者编号（外键） */
    @Excel(name = "发送者编号", readConverterExp = "外=键")
    private Long staffId;

    /** 接受者教师编号（外键） */
    @Excel(name = "接受者教师编号", readConverterExp = "外=键")
    private Long teacherId;

    /** 站内信内 */
    @Excel(name = "站内信内")
    private String messageMessage;

    /** 站内信的查看状态(外键) */
    @Excel(name = "站内信的查看状态(外键)")
    private Long typeId;

    /** 站内信发送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "站内信发送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date messageSendDate;

    /** 备用列 */
    @Excel(name = "备用列")
    private Long messageBy;

    /** 备用列 */
    @Excel(name = "备用列")
    private String messageBy2;

    /** 备用列 */
    @Excel(name = "备用列")
    private String messageBy3;

    public void setMessageId(Long messageId) 
    {
        this.messageId = messageId;
    }

    public Long getMessageId() 
    {
        return messageId;
    }
    public void setStaffId(Long staffId) 
    {
        this.staffId = staffId;
    }

    public Long getStaffId() 
    {
        return staffId;
    }
    public void setTeacherId(Long teacherId) 
    {
        this.teacherId = teacherId;
    }

    public Long getTeacherId() 
    {
        return teacherId;
    }
    public void setMessageMessage(String messageMessage) 
    {
        this.messageMessage = messageMessage;
    }

    public String getMessageMessage() 
    {
        return messageMessage;
    }
    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }
    public void setMessageSendDate(Date messageSendDate) 
    {
        this.messageSendDate = messageSendDate;
    }

    public Date getMessageSendDate() 
    {
        return messageSendDate;
    }
    public void setMessageBy(Long messageBy) 
    {
        this.messageBy = messageBy;
    }

    public Long getMessageBy() 
    {
        return messageBy;
    }
    public void setMessageBy2(String messageBy2) 
    {
        this.messageBy2 = messageBy2;
    }

    public String getMessageBy2() 
    {
        return messageBy2;
    }
    public void setMessageBy3(String messageBy3) 
    {
        this.messageBy3 = messageBy3;
    }

    public String getMessageBy3() 
    {
        return messageBy3;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("messageId", getMessageId())
            .append("staffId", getStaffId())
            .append("teacherId", getTeacherId())
            .append("messageMessage", getMessageMessage())
            .append("typeId", getTypeId())
            .append("messageSendDate", getMessageSendDate())
            .append("messageBy", getMessageBy())
            .append("messageBy2", getMessageBy2())
            .append("messageBy3", getMessageBy3())
            .toString();
    }
}
